package com.share.device.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "角色")
public class Role {

    private static final long serialVersionUID = 1L;

    /** 角色id */
    @Schema(description = "角色id")
    @TableId(value = "id", type = IdType.INPUT) // 没有自增，使用INPUT
    private Integer id;

    /** 角色姓名 */
    @Schema(description = "角色姓名")
    private String roleName;
}